import url from '@/tool/index.js'
export const wxSign = () => { //扫一扫
	return new Promise(resolve => {
		uni.request({
			url: url+'/api/index/wxaccessToken',
			data: {
				token:uni.getStorageSync('userToken')
			},
			header:{
				'Content-Type':'application/x-www-form-urlencoded'
			},
			method: 'POST',
			success: (res) => resolve(res.data),
		});
	})
}